package com.hc.pingtan.controller;


import com.hc.pingtan.model.CommonResult;
import com.hc.pingtan.model.KekeMerchants;
import com.hc.pingtan.service.IKekeMerchantsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author astupidcoder
 * @since 2021-10-26
 */
@Api(tags = "立即对接接口")
@RestController
@RequestMapping("/keke-merchants")
public class KekeMerchantsController {
    @Resource
    private IKekeMerchantsService iKekeMerchantsService;

    @ApiOperation(value = "立即对接接口", notes = "立即对接接口", httpMethod = "POST")
    @PostMapping("docking")
    public CommonResult docking(@RequestBody KekeMerchants kekeMerchants) {
        iKekeMerchantsService.save(kekeMerchants);
        return CommonResult.builder().build();
    }
}
